package com.soft.testmybatis.mapper;

import com.soft.testmybatis.entity.Items;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface ItemsMapper {

    // 按照商品名称和商品价格查询商品列表
    List<Items> findItemsByNameAndPrice(HashMap<String,Object> map);

    @Select("select * from items where id = #{id}")
    Items findItemById(int id);

}
